package com.schoolcafeteria.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/admin")
@PreAuthorize("hasAuthority('ADMIN')")
public class AdminController {
	
	@RequestMapping(value={"/","/index"})
	public String index(){
		return "admin-index";
	}
}
